//
//  OrderRequire.m
//  Recipe
//
//  Created by bing han on 12-7-12.
//  Copyright (c) 2012年 __MyCompanyName__. All rights reserved.
//

#import "OrderRequire.h"
static OrderRequire  *instence = nil;

@implementation OrderRequire
@synthesize disherRequire;

+(OrderRequire *) newInstance{
    @synchronized(self){
        if (instence == nil) {
            instence = [[OrderRequire alloc] init];
            instence.disherRequire = [[NSMutableDictionary alloc] init];
        }
    }
    return  instence;
}

+(id) allocWithZone:(NSZone *)zone{
    @synchronized(self){
        if (instence == nil) {
            instence = [super allocWithZone:zone];
            return instence;
        }
    }
    return nil;
}

-(id) copyWithZone:(NSZone *)zone{
    return self;
}

-(id) retain{
    return self;
}

-(unsigned) retainCount{
    return UINT_MAX;
}

-(id) autorelease{
    return self;
}

-(void) addRequire:(NSString*)key require:(NSString*)require{
    [instence.disherRequire setObject:require forKey:key];
    
}
-(void) removeRequire:(NSString*)key{
    [instence.disherRequire removeObjectForKey:key];
}


@end
